/**
 * @copyright Copyright (c) 2023..
 *
 * @file    data_build.h
 * @brief   描述 构建mqtt消息体上传
 * @author  HC(202206728@any3.com)
 * @version 1.0
 * @date    2023-09-27
 */
#ifndef DATA_BUILD
#define DATA_BUILD

#include "json/json.h"
#include <string>
#include "common_opr_all.h"
#include "Common.pb.h"

using namespace std;

class DataBuild
{
public:
    DataBuild();
    ~DataBuild();

    // R8
    static void DataCollectUpload_send(const Soa::PB_DC_FileList_Struct &fileList, const std::string &eventCode);
    static void DataCollectUpload_send(IN const string _Evtname, IN const uint64_t timestamp, IN Json::Value &param);
    static void DataCollectUpload_send(IN const std::string _Evtname, IN Json::Value &param);
    static void DataCollectUpload_send(IN const std::string _sk, IN const std::string _m, IN Json::Value &param);
    static void mqttsend(const string &sendStr);

    static void DataCollectSignal_send(IN const std::string _sk, IN const std::string _m, IN Json::Value &param);
};

#endif // DATA_BUILD
